//登录按钮
function testCodeBtnTxt() {
	if(isNull($('#mobile').val())) {
		mui.toast("请先输入手机号码");
		return;
	}
	ajAjax("getCode.do", {
		"phone": $('#mobile').val()
	}, function(data) {
		var startNum = 60;
		var timer = setInterval(function() {
			if(startNum > 0) {
				startNum--;
				$(".getcode-btn").attr("disabled", "disabled");
				$(".getcode-btn").text(startNum + "s");
			} else {
				$(".getcode-btn").removeAttr("disabled");
				clearInterval(timer);
			}
		}, 1000)
	}, function(err) {});
	$("#testcode").val("1234")
}

//下一步
function nextPage() {
	if(isNull($('#mobile').val())) {
		mui.toast("请先输入手机号码");
		return;
	}

	if(isNull($('#testcode').val())) {
		mui.toast("请先输入验证码");
		return;
	}

	var data = {
		"testcode": $('#testcode').val(),
		"phone": $('#mobile').val(),
	}
	mui.openWindow({
		url: 'reg_comfir.html',
		id: 'reg_comfir.html',
		extras: data
	});
}